package com.ruoyi.psi.base.product.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.sql.Timestamp;

/**
 *
 * @author Drj 2021/6/28
 */
public class ProduceCheck {
    /**
     * 产品盘点后数量
     */
    private Double produceCheckNum;
    /**
     * 产品编号
     */
    private String produceId;
    /**
     * 仓库编号
     */
    private String warehouseId;
    /**
     * 产品盘点时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Timestamp inventoryDeadline;

    public ProduceCheck() {
    }

    public ProduceCheck(String produceId, String warehouseId) {
        this.produceId = produceId;
        this.warehouseId = warehouseId;
        this.produceCheckNum = 0.0;
    }

    public ProduceCheck(ProduceCheck produceCheck) {
        this.produceCheckNum = produceCheck.getProduceCheckNum();
        this.inventoryDeadline = produceCheck.getInventoryDeadline();
    }


    public Double getProduceCheckNum() {
        return produceCheckNum;
    }

    public void setProduceCheckNum(Double produceCheckNum) {
        this.produceCheckNum = produceCheckNum;
    }

    public Timestamp getInventoryDeadline() {
        return inventoryDeadline;
    }

    public void setInventoryDeadline(Timestamp inventoryDeadline) {
        this.inventoryDeadline = inventoryDeadline;
    }

    public String getProduceId() {
        return produceId;
    }

    public void setProduceId(String produceId) {
        this.produceId = produceId;
    }

    public String getWarehouseId() {
        return warehouseId;
    }

    public void setWarehouseId(String warehouseId) {
        this.warehouseId = warehouseId;
    }
}
